package com.manage.demo.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.manage.demo.dao.ResultMapper;
import com.manage.demo.dao.model.ExamResults;

@Service
@Transactional
public class ResultService {

	@Autowired
	private ResultMapper ResultMapper;
	
	public List<String> getTermlist(){
		return ResultMapper.getTermlist();
	}
	
	public List<Map<String, Object>> getUserListByCondition(String semester, String examtype, String grades, String classes, String stuname, int limit, int offset) {
		return ResultMapper.getUserListByCondition(semester, examtype, grades, classes, stuname, limit, offset);
	}

	public List<Map<String, Object>> getAllresult(String semester, String examtype, String grades, String classes, String stuname) {
		return ResultMapper.getAllresult(semester, examtype, grades, classes, stuname);
	}
	
	public List<Map<String, Object>> getCount(String semester, String examtype, String grades, String classes, String stuname) {
		return ResultMapper.getCount(semester, examtype, grades, classes, stuname);
	}
}
